//
//  PhysicSprite.h
//  Box2DProject
//
//  Created by Thi Huynh on 9/10/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"
#import "Box2D.h"

@interface PhysicSprite : CCSprite
{
    NSString    *_imgFileName;
    b2Body      *_body;
    CGRect      _originalRect;
    CGPoint     _position;
    
}

@property(nonatomic,retain)     NSString        *imgFileName;
@property(nonatomic,readonly)   b2Body          *body;
@property(nonatomic)            CGRect          originalRect;
@property(nonatomic)            CGPoint         position;


- (id)initWithWorld:(b2World*)world imageName:(NSString*)imageName pos:(CGPoint)pos;

- (b2Body*)createBodyForWorld:(b2World*)world position:(b2Vec2)position rotation:(float)rotation vertices:(b2Vec2*)vertices vertexCount:(int32)count density:(float)density friction:(float)friction restitution:(float)restitution;

@end
